﻿/*
 *	Copyright (c) 2009 Queensland University of Technology. All rights reserved.
 *	The QUT Bioinformatics Collection is open source software released under the 
 *	Microsoft Public License (Ms-PL): http://www.microsoft.com/opensource/licenses.mspx.
 */
using System;
using System.Collections.Generic;
using System.Configuration;
using System.Data;
using System.Linq;
using System.Windows;
using System.Windows.Threading; // DispatcherUnhandledExceptionEventArgs
using QUT.Bio.Util;

namespace BlastExplorer {
	/// <summary>
	/// Interaction logic for App.xaml
	/// </summary>
	public partial class App : Application {
	
		App () {
			DispatcherUnhandledException += App_DispatcherUnhandledException;
		}

        void App_DispatcherUnhandledException(object sender, DispatcherUnhandledExceptionEventArgs e)
        {
			Alert.Show( "Unhandled error in Blast Explorer:\n{0}", e.Exception );
            e.Handled = true;
        }
    }
}
